import {NgModule} from '@angular/core';
import {BaseSharedModule, PipesModule, DirectivesModule} from '@kylin/shared/base';

import {DynamicFormBaseComponent} from './dynamic-form-base.component';
import {DynamicFormComponent} from './dynamic-form.component';
import {InputGroupComponent} from './input-group/input-group.component';
import {LocationListComponent} from './location-list/location-list.component';

import {FormControlService} from './form-control.service';

import {AfbmModule} from '../../afbm/afbm.module';
import {ImagesModule} from '../images/images.module';
import {UploadModule} from '../upload/upload.module';

@NgModule({
    declarations: [DynamicFormBaseComponent, DynamicFormComponent, InputGroupComponent, LocationListComponent],
    imports: [
        BaseSharedModule,
        PipesModule,
        DirectivesModule,
        AfbmModule,
        ImagesModule,
        UploadModule
    ],
    providers: [FormControlService],
    exports: [DynamicFormComponent]
})
export class DynamicFormModule {
}
